import request from '@/utils/request'

// 查询支出账单列表
export function listExpenseBill(query) {
  return request({
    url: '/supply/expenseBill/list',
    method: 'get',
    params: query
  })
}

// 查询支出账单详细
export function getExpenseBill(id) {
  return request({
    url: '/supply/expenseBill/' + id,
    method: 'get'
  })
}

// 新增支出账单
export function addExpenseBill(data) {
  return request({
    url: '/supply/expenseBill',
    method: 'post',
    data: data
  })
}

// 修改支出账单
export function updateExpenseBill(data) {
  return request({
    url: '/supply/expenseBill',
    method: 'put',
    data: data
  })
}

// 删除支出账单
export function delExpenseBill(id) {
  return request({
    url: '/supply/expenseBill/' + id,
    method: 'delete'
  })
}
